package com.bsb.biz.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bsb.base.mapper.BsbExpertAskMapper;
import com.bsb.base.model.BsbExpertAsk;
import com.bsb.base.model.BsbExpertAskExample;

@Service
public class BsbExpertAskService{
	
	@Resource
	private BsbExpertAskMapper bsbExpertAskMapper;
	
	public void addBsbExpertAsk(BsbExpertAsk bsbExpertAsk) {
		bsbExpertAskMapper.insertSelective(bsbExpertAsk);
	}
	
	public void delBsbExpertAskByUuid(String uuid) {
		bsbExpertAskMapper.deleteByPrimaryKey(uuid);
	}
	
	public void updateBsbExpertAsk(BsbExpertAsk bsbExpertAsk) {
		bsbExpertAskMapper.updateByPrimaryKeySelective(bsbExpertAsk);
	}
	
	public void updateBsbExpertAskByExample(BsbExpertAsk bsbExpertAsk,BsbExpertAskExample bsbExpertAskExample){
	    bsbExpertAskMapper.updateByExampleSelective(bsbExpertAsk,bsbExpertAskExample);
	}
	
	public BsbExpertAsk getBsbExpertAskByUuid(String uuid) {
		return bsbExpertAskMapper.selectByPrimaryKey(uuid);
	}
	
	public List<BsbExpertAsk> getPageBsbExpertAsk(BsbExpertAskExample bsbExpertAskExample) {
		return bsbExpertAskMapper.selectPage(bsbExpertAskExample);
	}
	
	public int countBsbExpertAsk(BsbExpertAskExample bsbExpertAskExample) {
		return bsbExpertAskMapper.countByExample(bsbExpertAskExample);
	}
	
	public List<BsbExpertAsk> selectByExample(BsbExpertAskExample example){
	    return bsbExpertAskMapper.selectByExample(example);
	}
}
